package subject

import (
	"vrcm/src/vrcm/common/models"
)

type Paper struct {
	models.Model

	PaperName  string `json:"paper_name" gorm:"type:varchar(50);comment:试卷名称"`
	PaperDesc  string `json:"paper_desc" gorm:"type:varchar(200);comment:试卷描述"`
	ShowAnswer int    `json:"show_answer" gorm:"type:tinyint;comment:答案显示 1.结束后显示答案 2答题后显示答案 3不显示答案"`
	IsDelete   int    `json:"is_delete" gorm:"type:tinyint;comment:是否删除 1删除 2未删除"`
	StartTime  int64  `json:"start_time" gorm:"column:start_time;type:int;comment:开始时间"`
	EndTime    int64  `json:"end_time" gorm:"column:end_time;type:int;comment:结束时间"`
	PaperType  int    `json:"paper_type" gorm:"column:paper_type;type:tinyint;comment:试卷类型 1直播间 2答题"`
	models.ModelTime
	models.ControlBy
}

func (Paper) TableName() string {
	return "paper"
}

func (e *Paper) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *Paper) GetId() interface{} {
	return e.Id
}
